.class public Lcn/apppark/vertify/network/request/WebServicePool;
.super Lcn/apppark/vertify/network/request/NetWorkRequest;


# instance fields
.field private methodName:Ljava/lang/String;

.field private msgWhat:I

.field private myHandler:Landroid/os/Handler;

.field private nameSpace:Ljava/lang/String;

.field private paramStr:Ljava/lang/String;

.field private position:Ljava/lang/String;

.field private subUrl:Ljava/lang/String;

.field private valueStr:Ljava/lang/String;


# direct methods
.method public constructor <init>(ILandroid/os/Handler;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 0

    invoke-direct {p0}, Lcn/apppark/vertify/network/request/NetWorkRequest;-><init>()V

    iput-object p7, p0, Lcn/apppark/vertify/network/request/WebServicePool;->methodName:Ljava/lang/String;

    iput-object p3, p0, Lcn/apppark/vertify/network/request/WebServicePool;->paramStr:Ljava/lang/String;

    iput-object p4, p0, Lcn/apppark/vertify/network/request/WebServicePool;->valueStr:Ljava/lang/String;

    iput-object p2, p0, Lcn/apppark/vertify/network/request/WebServicePool;->myHandler:Landroid/os/Handler;

    iput p1, p0, Lcn/apppark/vertify/network/request/WebServicePool;->msgWhat:I

    iput-object p5, p0, Lcn/apppark/vertify/network/request/WebServicePool;->nameSpace:Ljava/lang/String;

    iput-object p6, p0, Lcn/apppark/vertify/network/request/WebServicePool;->subUrl:Ljava/lang/String;

    iput-object p3, p0, Lcn/apppark/vertify/network/request/WebServicePool;->paramStr:Ljava/lang/String;

    iput-object p4, p0, Lcn/apppark/vertify/network/request/WebServicePool;->valueStr:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>(Lcn/apppark/vertify/network/request/NetWorkRequest$OnSuccessListener;Lcn/apppark/vertify/network/request/NetWorkRequest$OnErrorListener;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 0

    invoke-direct {p0}, Lcn/apppark/vertify/network/request/NetWorkRequest;-><init>()V

    iput-object p2, p0, Lcn/apppark/vertify/network/request/WebServicePool;->onErrorListener:Lcn/apppark/vertify/network/request/NetWorkRequest$OnErrorListener;

    iput-object p1, p0, Lcn/apppark/vertify/network/request/WebServicePool;->onSuccessListener:Lcn/apppark/vertify/network/request/NetWorkRequest$OnSuccessListener;

    iput-object p7, p0, Lcn/apppark/vertify/network/request/WebServicePool;->methodName:Ljava/lang/String;

    iput-object p3, p0, Lcn/apppark/vertify/network/request/WebServicePool;->paramStr:Ljava/lang/String;

    iput-object p4, p0, Lcn/apppark/vertify/network/request/WebServicePool;->valueStr:Ljava/lang/String;

    iput-object p5, p0, Lcn/apppark/vertify/network/request/WebServicePool;->nameSpace:Ljava/lang/String;

    iput-object p6, p0, Lcn/apppark/vertify/network/request/WebServicePool;->subUrl:Ljava/lang/String;

    iput-object p3, p0, Lcn/apppark/vertify/network/request/WebServicePool;->paramStr:Ljava/lang/String;

    iput-object p4, p0, Lcn/apppark/vertify/network/request/WebServicePool;->valueStr:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method public doRequest(Lcn/apppark/vertify/network/request/NetWorkRequest;)V
    .locals 1

    invoke-static {}, Lcn/apppark/vertify/network/request/NetWorkPool;->getNetWorkPool()Lcn/apppark/vertify/network/request/NetWorkPool;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcn/apppark/vertify/network/request/NetWorkPool;->addRequest(Lcn/apppark/vertify/network/request/NetWorkRequest;)V

    return-void
.end method

.method public requestData(Landroid/os/Handler;)V
    .locals 6

    const/4 v5, 0x1

    iget-object v0, p0, Lcn/apppark/vertify/network/request/WebServicePool;->onErrorListener:Lcn/apppark/vertify/network/request/NetWorkRequest$OnErrorListener;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcn/apppark/vertify/network/request/WebServicePool;->onSuccessListener:Lcn/apppark/vertify/network/request/NetWorkRequest$OnSuccessListener;

    if-eqz v0, :cond_3

    iput-object p1, p0, Lcn/apppark/vertify/network/request/WebServicePool;->myHandler:Landroid/os/Handler;

    iget-object v0, p0, Lcn/apppark/vertify/network/request/WebServicePool;->methodName:Ljava/lang/String;

    iget-object v1, p0, Lcn/apppark/vertify/network/request/WebServicePool;->paramStr:Ljava/lang/String;

    iget-object v2, p0, Lcn/apppark/vertify/network/request/WebServicePool;->valueStr:Ljava/lang/String;

    iget-object v3, p0, Lcn/apppark/vertify/network/request/WebServicePool;->nameSpace:Ljava/lang/String;

    iget-object v4, p0, Lcn/apppark/vertify/network/request/WebServicePool;->subUrl:Ljava/lang/String;

    invoke-static/range {v0 .. v5}, Lcn/apppark/vertify/network/request/WebServiceRequest;->Ksoap2ForString(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcn/apppark/vertify/network/request/WebServicePool;->myHandler:Landroid/os/Handler;

    if-nez v1, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    sget-object v1, Lcn/apppark/vertify/network/request/WebServicePool;->ERROR:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    new-instance v1, Lvp;

    invoke-direct {v1, p0, v0}, Lvp;-><init>(Lcn/apppark/vertify/network/request/WebServicePool;Ljava/lang/String;)V

    invoke-virtual {p1, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    goto :goto_0

    :cond_2
    new-instance v1, Lvq;

    invoke-direct {v1, p0, v0}, Lvq;-><init>(Lcn/apppark/vertify/network/request/WebServicePool;Ljava/lang/String;)V

    invoke-virtual {p1, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    goto :goto_0

    :cond_3
    iget-object v0, p0, Lcn/apppark/vertify/network/request/WebServicePool;->myHandler:Landroid/os/Handler;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcn/apppark/vertify/network/request/WebServicePool;->methodName:Ljava/lang/String;

    iget-object v1, p0, Lcn/apppark/vertify/network/request/WebServicePool;->paramStr:Ljava/lang/String;

    iget-object v2, p0, Lcn/apppark/vertify/network/request/WebServicePool;->valueStr:Ljava/lang/String;

    iget-object v3, p0, Lcn/apppark/vertify/network/request/WebServicePool;->nameSpace:Ljava/lang/String;

    iget-object v4, p0, Lcn/apppark/vertify/network/request/WebServicePool;->subUrl:Ljava/lang/String;

    invoke-static/range {v0 .. v5}, Lcn/apppark/vertify/network/request/WebServiceRequest;->Ksoap2ForString(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcn/apppark/vertify/network/request/WebServicePool;->myHandler:Landroid/os/Handler;

    invoke-virtual {v1}, Landroid/os/Handler;->obtainMessage()Landroid/os/Message;

    move-result-object v1

    iget v2, p0, Lcn/apppark/vertify/network/request/WebServicePool;->msgWhat:I

    iput v2, v1, Landroid/os/Message;->what:I

    new-instance v2, Landroid/os/Bundle;

    invoke-direct {v2}, Landroid/os/Bundle;-><init>()V

    const-string v3, "soresult"

    invoke-virtual {v2, v3, v0}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcn/apppark/vertify/network/request/WebServicePool;->position:Ljava/lang/String;

    if-eqz v0, :cond_4

    const-string v0, "position"

    iget-object v3, p0, Lcn/apppark/vertify/network/request/WebServicePool;->position:Ljava/lang/String;

    invoke-virtual {v2, v0, v3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    :cond_4
    invoke-virtual {v1, v2}, Landroid/os/Message;->setData(Landroid/os/Bundle;)V

    iget-object v0, p0, Lcn/apppark/vertify/network/request/WebServicePool;->myHandler:Landroid/os/Handler;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0
.end method

.method public setPosition(Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcn/apppark/vertify/network/request/WebServicePool;->position:Ljava/lang/String;

    return-void
.end method
